package com.xuecheng.content.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.xuecheng.content.model.dto.AddCourseTeacherDto;
import com.xuecheng.content.model.po.CourseTeacher;

import java.util.List;

/**
 * @author 摆渡人
 * @description
 * @date 2023/7/14 19:52
 */
public interface CourseTeacherService extends IService<CourseTeacher> {

    /**
     * 查询教师
     * @param courseId
     * @return
     */
    List<CourseTeacher> listTeacher(Long courseId);

    /**
     * 添加或修改教师
     * @param addCourseTeacherDto
     * @return
     */
    CourseTeacher addTeacher(AddCourseTeacherDto addCourseTeacherDto);


    /**
     * 删除教师
     * @param courseId
     * @param teacherId
     */
    void deleteTeacher(Long courseId, Long teacherId);
}
